package com.zrrd.io.propertiesDemo;

import java.io.FileWriter;
import java.io.IOException;
import java.util.Properties;

/**
 * @author WanJl
 * @version 1.0
 * @title PropertiesDemo03
 * @description
 * @create 2023/10/15 11:36
 */
public class PropertiesDemo03 {
    public static void main(String[] args) throws IOException {
        Properties prop = new Properties();

        prop.setProperty("name","张三");
        prop.setProperty("age","25");
        prop.setProperty("sex","男");
        FileWriter writer = new FileWriter("prop.properties");
        prop.store(writer,"write data....");

        writer.close();
    }
}
